package com.xiguaji.tiktok.task.monitor;

import com.xiguaji.tiktok.task.aweme.event.SaveAwemeEventListener;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class TimeStatistics {
    //updateBloggerMainEvent时间花费的时间
    private long updateBloggerMainEvent;
    //视频处理数量
    private int awemeSize=0;
    //通过播主获取视频接口总耗时
    private long awemeSpiderBloggerAwemes=0;

    private long bloggerSpider;
    private long refreshBloggerAweme;
    private long getBloggerAwemeExtend;
    private long getBloggerAwemes;
    private long refreshBloggerAwemeScore;
    private long refreshBloggerAwemeForES=-1;
    private long updateBloggerMainTab;
    private long saveBloggerMain2ES;
    private long bloggerAwemesSizeFromDb;
    private SaveAwemeEventListener.SaveAwemeTimeStatistics saveAwemeTimeStatistics;

    @Override
    public String toString() {
        return "TimeStatistics{" +
                "updateBloggerMainEvent=" + updateBloggerMainEvent +
                ", awemeSize=" + awemeSize +
                ", awemeSpiderBloggerAwemes=" + awemeSpiderBloggerAwemes +
                ", bloggerSpider=" + bloggerSpider +
                ", refreshBloggerAweme=" + refreshBloggerAweme +
                ", getBloggerAwemeExtend=" + getBloggerAwemeExtend +
                ", getBloggerAwemes=" + getBloggerAwemes +
                ", refreshBloggerAwemeScore=" + refreshBloggerAwemeScore +
                ", refreshBloggerAwemeForES=" + refreshBloggerAwemeForES +
                ", updateBloggerMainTab=" + updateBloggerMainTab +
                ", saveBloggerMain2ES=" + saveBloggerMain2ES +
                ", bloggerAwemesSizeFromDb=" + bloggerAwemesSizeFromDb +
                ",saveAwemeTimeStatistics="+saveAwemeTimeStatistics+
                '}';
    }
}
